package com.ncu.cloundeoffice.pojo;

import cn.afterturn.easypoi.excel.annotation.Excel;
import lombok.*;

import java.util.List;

@Data
@AllArgsConstructor
@RequiredArgsConstructor
@EqualsAndHashCode(callSuper = false , of = "name")
@NoArgsConstructor
public class TDepartment {
    private int id;
    @Excel(name = "部门")
    @NonNull
    private String name;
    private int parentId;
    private String depPath;
    private boolean enabled;
    private boolean isParent;


    //子部门列表
    private List<TDepartment> children;

    //返回结果,存储过程使用
    private Integer result;

}
